<?php
$id_usergroup = $this->session->userdata('id_usergroup');//ambil id usergroup
?>

<nav>
	<ul>
		<li><?php echo anchor('home', 'Home'); ?></li>
		<li><?php echo anchor('#', 'Aktivitas'); echo "<ul>";
			if($id_usergroup == 1 || $id_usergroup == 6){
			echo "<li>"; echo anchor('bobot','Bobot'); echo "</li>";}
			if($id_usergroup == 1 || $id_usergroup == 6){
			echo "<li>"; echo anchor('cabang','Cabang Koperasi'); echo "</li>";}
			if($id_usergroup == 1 || $id_usergroup == 2 || $id_usergroup == 6){
			echo "<li>"; echo anchor('#','Laporan Analisa rasio'); echo "<ul>";
				 echo "<li>"; echo anchor('laporan/bulan1','1 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan3','3 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan6','6 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan12','12 Bulanan'); echo "</li>";
			echo "</ul>"; echo "</li>";}
			if($id_usergroup == 2 || $id_usergroup == 6){
			echo "<li>"; echo anchor('analisa/form','Analisa Rasio'); echo "<ul>";
				//echo "<li>"; echo anchor('analisa/upload','Upload File'); echo "</li>";
				//echo "<li>"; echo anchor('analisa/form','Isi Manual'); echo "</li>";
			echo "</ul>"; echo "</li>";}
		echo "</ul>"; echo "</li>";
		if($id_usergroup == 1 || $id_usergroup == 6){
		echo "<li>"; echo anchor('#','Pengaturan'); echo "<ul>";
			echo "<li>"; echo anchor('user','User'); echo "</li>";
		echo "</ul>"; echo "</li>";}
		echo "<li>"; echo anchor('about','About'); echo "</li>";
		echo "<li>"; echo anchor('login/process_logout','Log Out', array('onclick' => "return confirm('Apa Anda yakin ingin keluar?')")); echo "</li>";
		?>
	</ul>
</nav>